home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_12_12
/
allison
/
except.cpp
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1994-10-04
|
382 b
|
25 lines
LISTING 4 - Illustrates the semantics of an exception specification
// The following is equivalent to:
// void f() throw(A,B) {}
void f()
{
try
{
// Whatever
}
catch(A)
{
throw; // rethrow
}
catch(B)
{
throw; // rethrow
}
catch(...)
{
unexpected();
}
}